package com.hmall.feign.client;

import com.hmall.common.dto.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * TODO
 *
 * @Author lyh
 * @Date 2024/11/15 11:13
 */
@FeignClient(value = "userservice")
@RequestMapping("/address")
public interface AddressClient {
    @GetMapping("{id}")
    public Address findAddressById(@PathVariable("id") Long id);
}
